package com.moran.beetlsql.module.controller;

import com.moran.beetlsql.module.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @Description
 * @Author wnf
 * @Date 2025-03-17
 */
@RequestMapping("/user/")
@Controller
public class UserController {
    @Autowired
    private UserService userService;

    @ResponseBody
    @RequestMapping(value = "queryAllUserList", produces = "application/json;charset=utf-8")
    public Map<String, Object> queryAllUserList() {
        return userService.queryAllUserList();
    }

    @ResponseBody
    @RequestMapping(value = "queryAllLogList", produces = "application/json;charset=utf-8")
    public Map<String, Object> queryAllLogList() {
        return userService.queryAllLogList();
    }
}
